package me.chenzhijun.chapter3.web;

import me.chenzhijun.chapter3.entity.Person;
import org.smart4j.framework.annotation.Action;
import org.smart4j.framework.annotation.Controller;
import org.smart4j.framework.bean.Data;
import org.smart4j.framework.bean.Param;

/**
 * @author chen
 * @version V1.0
 * @date 2017/9/27
 */
@Controller
public class CustomerController {

    @Action(value = "get:/customer")
    public Data hello(Param param) {
        System.out.println("hello,smart");
        Person person = new Person();
        person.setName("chenzhijun");
        person.setValue("hello");
        Data data = new Data(person);

        return data;
    }
}


